package msg

import (
	"github.com/chenwbyx/leafserver/server/msg/client"
)

var (
	NewProcessor = initProcessor()
)

func init() { // 这里我们注册 protobuf 消息)
	NewProcessor.SetByteOrder(false)
	NewProcessor.Register(uint16(client.ClientCmd_CmdDefaultReault), &client.DefaultReault{})
	NewProcessor.Register(uint16(client.ClientCmd_CmdUserLoginReq), &client.UserLoginReq{})
	NewProcessor.Register(uint16(client.ClientCmd_CmdUserRegisterReq), &client.UserRegisterReq{})
	NewProcessor.Register(uint16(client.ClientCmd_CmdUserPackResp), &client.UserPackResp{})

}
